#include <stdio.h>
#include "timerlib.h"

//定义设备打开函数
int dev_open()
{
    int fd;
    fd = open("/dev/dev_test", O_RDWR, 0777);
    if (fd < 0)
    {
        printf("file open error\n");
        return -1;
    }

    return fd;
}                     

